//========encoding:utf-8=========
/*
 * @describe:  
 * @author:cjgong
 * @copyright:chinasoft.cn
 * @date:2020年1月19日 下午4:47:49 
 */

package edu.chinasoft.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import edu.chinasoft.pojo.User;

public class UserLogin {
	
	public static boolean isLogin(HttpServletRequest request) {
		HttpSession session = request.getSession(false);
		User user=null;
		if(session!=null) {
			user=(User)session.getAttribute("user");
		}
		
		if(user==null) {
			return false;
		}else {
			return  true;
		}
		
		
		
	}

}
